<%@ page import="com.xyc.pojo.User" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>添加新用户</title>
    <style>
        .style {
            text-align: center; /*让div内部文字居中*/
            background-color: #98F5FF;
            border-radius: 20px;
            width: 300px;
            height: 350px;
            margin: auto;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        #quit {
            color: blue;
        }

        #quit:hover {
            cursor: pointer;
            color: #F4A460;
        }
    </style>
</head>
<body>

<div class="style">
    <h2 style="color:blue">添加新用户</h2>
    <form action="addUserReal" method="post">
        <table>
            <tr>
                <td>编号</td> <!--uuid不需要添加-->
                <td><input type="text" readonly value="自动生成" name="user_id"/></td>
            </tr>
            <tr>
                <td>昵称</td>
                <td><input type="text" value="" name="user_name"/></td>
            </tr>
            <tr>
                <td>性别</td>
                <td>
                    <input type="radio" value="男" name="sex" checked="checked"/>男
                    <input type="radio" value="女" name="sex"/>女
                </td>
            </tr>
            <tr>
                <td>年龄</td>
                <td><input type="text" value="" name="age"/></td>
            </tr>
            <tr>
                <td>邮箱</td>
                <td><input type="text" value="" name="email"/></td>
            </tr>
            <tr>
                <td>会员</td>
                <td>
                    <input type="radio" value="0" name="isVip" checked="checked"/>普通用户
                    <input type="radio" value="1" name="isVip"/>会员用户
                </td>
            </tr>
            <tr>
                <td>是否可用</td>
                <td><input type="radio" value="1" name="isUse" checked="checked"/>可用
                    <input type="radio" value="0" name="isUse"/>禁用
                </td>
            </tr>
            <tr>
                <td>会员开通</td>
                <td><input type="text" value="" name="create_time"/></td>
            </tr>
            <tr>
                <td>会员到期</td>
                <td><input type="text" value="" name="last_time"/></td>
            </tr>
        </table>
        <p><input type="submit" value="提交"/></p>
    </form>
</div>
</body>
</html>
